/**
 * Created by yxk at 2020/6/5
 */
import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL

/**
 * 从人力资源添加员工
 */
export function hrmAddUserAPI(data) {
	return request({
		url: BASE_URL + "adminUser/hrmAddUser",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 查询部门用户列表
 */
export function adminUserQueryDeptUserByHrmAPI(data) {
	return request({
		url: BASE_URL + "adminUser/queryDeptUserListByHrm",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 查询部门员工列表
 * @param {*} data
 */
export function adminUserQueryByDeptAPI(deptId) {
	return request({
		url: BASE_URL + `adminUser/queryDeptUserList/${deptId}`,
		method: "post"
	})
}
